﻿<script type="text/javascript" src="__PUBLIC__/admin/js/common-1.0.js"></script> 
<div class="cl pd-5 bg-1 bk-gray mb-10">
  <a class="btn btn-primary radius" onclick="layer_show('添加代理地区','__MODULE__/User/areaAddEdit','600','')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加代理地区</a>
  <span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
    <tr class="text-c">
      <th width="40" id="us_id" onClick="tab_sort(this)"><div class="">编号</div></th>
      <th width="80" id="re_level" onClick="tab_sort(this)"><div class="">代理地区等级</div></th>
      <th width="80" id="re_name" onClick="tab_sort(this)"><div class="">代理地区</div></th>
      <th width="80" id="re_uid" onClick="tab_sort(this)"><div class="">代理ID</div></th>
      <th width="80" id="re_dlname" onClick="tab_sort(this)"><div class="">代理姓名</div></th>
      <th width="60">操作</th>
    </tr>
  </thead>
  <volist name="list" id="vo" >
    <tr class="text-c">
      <td>{$i}</td>
      <td><if condition="$vo['re_level'] eq 1">省级<elseif condition="$vo['re_level'] eq 2"/>市级<else/>区级</if></td>
      <td>{$vo.re_name}</td>
      <td>{$vo.re_uid}</td>
      <td>{$vo.re_dlname}</td>
      <td>
        <a href="javascript:;"style="text-decoration: none;" onclick="layer_show('修改代理地区','__MODULE__/User/areaAddEdit/id/{$vo.re_id}','600','')">编辑</a>
        <a style="text-decoration:none" href="javascript:;" onclick="del(this,'{$vo.re_id}')"title="删除"><i class="Hui-iconfont">&#xe609;</i></a></td>
    </tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>
